<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑文章</title>
<link rel="stylesheet" type="text/css" href="../Public/css/main.css" />
<script type="text/javascript" src="__PUBLIC__/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
	function onloadFck(){
		var fck = new FCKeditor('introtext');
		fck.BasePath="__PUBLIC__/fckeditor/";
		fck.Width="900";
		fck.Height="500";
		fck.ReplaceTextarea();
	}
	window.onload = onloadFck;
	
	function fnOnSubmit(form){
		//var obj = FCKeditorAPI.GetInstance('introtext');
		//obj.UpdateLinkField();
	}
</script>
</head>
<body>
<!-- __URL__代表当前模块路径 -->
<table>
<form action="__URL__/update" method="post">
	<tr>
		<td align="right">单&nbsp;&nbsp;&nbsp;&nbsp;元：</td>
		<td colspan="3">
			<select name="sectionid">
				<option value="">-请选择单元-</option>
				<volist name="slist" id="sec">
					<option value="{$sec['id']}" <eq name="article['sectionid']" value="$sec['id']"> selected</eq>>{$sec['title']}</option>
				</volist>
			</select>
		</td>
	</tr>
	<tr>
		<td align="right">分&nbsp;&nbsp;&nbsp;&nbsp;类：</td>
		<td colspan="3">
			<select name="catid">
				<option value="">-请选择分类-</option>
				<volist name="clist" id="cate">
					<option value="{$cate['id']}" <eq name="article['catid']" value="$cate['id']"> selected</eq>>{$cate['title']}</option>
				</volist>
			</select>
		</td>
	</tr>
	<tr>
		<td align="right">标&nbsp;&nbsp;&nbsp;&nbsp;题：</td>
		<td colspan="3"><input type="text" name="title" id="rule_title" size="80" value="{$article['title']}" />
		&nbsp;&nbsp;<input type='checkbox' name="shortTitle" value="1" onclick="$('trShortTitle').toggle()"/>短标题
		&nbsp;&nbsp;<input type='checkbox' name="subTitle" value="1" onclick="$('trSubTitle').toggle()"/>副标题
		</td>
	</tr>
	<tr>
		<td align="right">短&nbsp;标&nbsp;题：</td>
		<td colspan="3"><input type="text" name="short_title" id="rule_short_title" value="{$article['short_title']}" size="40"/></td>
	</tr>
	<tr>
		<td align="right">副&nbsp;标&nbsp;题：</td>
		<td colspan="3"><input type="text" name="sub_title" id="rule_sub_title" value="{$article['sub_title']}" size="40"/></td>
	</tr>
	<tr>
		<td align="right">关&nbsp;键&nbsp;词：</td>
		<td colspan="3"><input type="text" name="keyword" value="{$article['keyword']}" size="40"/></td>
	</tr>
	<tr>
		<td align="right">作&nbsp;&nbsp;&nbsp;&nbsp;者：</td>
		<td><input type="text" name="author" value="{$article['author']}" size="40"/></td>
		<td align="right">来&nbsp;&nbsp;&nbsp;&nbsp;源：</td>
		<td><input type="text" name="copy_from" value="{$article['copy_from']}" size="40"/></td>
	</tr>
	<tr>
		<td align="right">分类属性:</td>
		<td>
			<volist name="attrlist" id="attr">
				<input type="checkbox" name="attribute" value="{$attr['state']}" <in name="attr['state']" value="$article['attribute']">checked</in> />{$attr['state_desc']}&nbsp;
			</volist>
		</td>
		<td align="right">选&nbsp;&nbsp;&nbsp;&nbsp;项:</td>
		<td><input type='checkbox' name=topic value="1"/>置顶</td>
	</tr>
	<tr>
		<td align="right">引导图片:</td>
		<td colspan="3"><input type='text' name="thumb_guide" value="{$article['thumb_guide']}" size="40"/></td>
	</tr>
	<tr>
		<td align="right">滚动图片:</td>
		<td colspan="3"><input type='text' name="thumbs" value="{$article['thumbs']}" size="40"/>图片</td>
	</tr>
	<tr>
		<td align="right">视频地址:</td>
		<td colspan="3"><input type='text' name="movie_url" value="{$article['movie_url']}" size="40"/></td>
	</tr>
	<tr>
		<td align="right">内&nbsp;&nbsp;&nbsp;&nbsp;容：</td>
		<td colspan="3"><textarea name="introtext">{$article['introtext']}</textarea></td>
	</tr>
	<tr>
		<td align="right">发&nbsp;&nbsp;&nbsp;&nbsp;布：</td>
		<td colspan="3">是<input type='radio' name="published" value="1" <eq name="article['published']" value="1">checked</eq> />
	否<input type='radio' name="published" value="0" <eq name="article['published']" value="0">checked</eq> /></td>
	</tr>
	<tr>
		<td colspan="4">
			<input type='hidden' value="{$article['id']}" name="id"/>
			<input type='submit' value='保存' />
		</td>
	</tr>
	
</form>
</table>
</body>
</html>